<template>
  <div class="home">
    <div class="title">
      <span>贝吉塔</span>
      
    </div>
    <div class="content">
      <!-- 左侧菜单栏 -->
      <div class="leftContent">
        <letfMenu></letfMenu>
      </div>
      <!-- 右侧展示内容 -->
      <div class="rightContent">
        <router-view></router-view>
      </div>
    </div>
  </div>
</template>

<script>
import letfMenu from "@/components/leftMenu.vue"

export default {
  name:"home",
  components: {
    letfMenu
  },
  props:{},
  data(){
    return {

    }
  },
  mounted() {},
  methods:{
    
  }

}
</script>

<style scoped lang="less">
.home{
  width: 100%;
  height: 100%;
  overflow: hidden;
  .title{
    position: fixed;
    top:0;
    width:100%;
    height: 40px;
    line-height: 40px;
    padding: 0 24px;
    background: #5c7ddb;
    z-index: 15;
    box-shadow: 0 2px 6px 0 rgba(0,0,0,0.26);
    color:#fff;
  }
  .content{
    width: 100%;
    height: calc(~"100% - 40px");
    margin-top:40px;
    overflow: hidden;
    display: flex;
    .leftContent{
      height: 100%;
      overflow: auto;
      width: 180px;
    }
    .rightContent{
      flex: 1;
      margin:15px;
      background: #fff;
      padding: 20px;
    }
  }
}
</style>